package com.dk.testcase;

import org.testng.annotations.*;

public class Case_004 {
    @BeforeSuite(groups = {"test"})
    public void beforeSuite(){
        System.out.println("BeforeSuite");
    }
    @BeforeTest(groups = {"test"})
    public void beforeTest(){
        System.out.println("BeforeTest");
    }
    @BeforeClass(groups = {"test"})
    public void beforeClass(){
        System.out.println("BeforeClass");
    }
    @BeforeGroups(groups = {"test"})
    public void beforeGroups(){
        System.out.println("BeforeGroups");
    }
    @BeforeMethod(alwaysRun = true,enabled = false)
    public void beforeMethod(){
        System.out.println("BeforeMethod");
    }
    @Test(groups = {"test"})
    public void test1(){
        System.out.println("test1");
    }
    @Test(groups = {"test"})
    public void test2(){
        System.out.println("test2");
    }
    @AfterSuite(groups = {"test"})
    public void afterSuite(){
        System.out.println("AfterSuite");
    }
    @AfterTest(groups = {"test"})
    public void afterTest(){
        System.out.println("AfterTest");
    }
    @AfterClass(groups = {"test"})
    public void afterClass(){
        System.out.println("AfterClass");
    }
    @AfterGroups(groups = {"test"})
    public void afterGroups(){
        System.out.println("AfterGroups");
    }
    @AfterMethod(groups = {"test"})
    public void afterMethod(){
        System.out.println("AfterMethod");
    }
}
